<?php
require(dirname(__FILE__) . '/includes/init.php');
$search_time = time()-5*24*3600;
$record_list = $db->getAll("select * from ".$ecs->table('yhd_change')." order by add_time desc");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理中心 - 抓取记录 </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
</head>
<body>
 
<h1>
<span class="action-span1"><a target="_top" href="index.php?act=main">管理中心</a> </span><span id="search_id" class="action-span1"> - 抓取记录 </span>
<div style="clear:both"></div>
</h1>
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>时间</th>
	<th>商品总数</th>
	<th>排名变数</th>
	<th>操作</th>
  <tr>
  <?php
  if(count($record_list)>0){
	foreach($record_list AS $index => $record){
  ?>
  <tr>
    <td><?php echo date('Y-m-d H:i:s',$record['add_time']);?></td>
	<td><?php echo $record['products_num'];?></td>
	<td><?php echo $record['change_num'];?></td>
	<td><a href="yihaodian_change_records.php?act=view&addtime=<?php echo $record['add_time'];?>">查看</a></td>
  </tr>
  <?php
	}
  }
  ?>
  </table>
</div>
</body>
</html>